package com.bird.system.application.auth.pl

import com.bird.component.lang.common.exception.IStatusInfo

enum class AuthStatusInfo(private val status: Int, private val message: String):IStatusInfo {

    //用户不存在
    USER_NOT_EXIST(20001, "用户不存在"),
    //密码错误
    PASSWORD_ERROR(20002, "密码错误"),
    //用户未登录
    USER_NOT_LOGIN(20003, "用户未登录"),
    //用户名或者密码错误
    USERNAME_OR_PASSWORD_ERROR(10001, "用户名或者密码错误"),
    //验证码错误
    VERIFICATION_CODE_ERROR(10002, "验证码错误"),
    //验证码失效
    VERIFICATION_CODE_INVALID(10003, "验证码失效"),
    ;
    override fun status(): Int {
        return this.status
    }

    override fun message(): String {
        return this.message
    }
}